package org.dreamland.infrastructure.persistence.mapper

import org.apache.ibatis.annotations.Param
import org.apache.ibatis.annotations.Select
import org.dreamland.infrastructure.persistence.model.User

interface UserMapper {

    @Select("select * from t_user")
    fun listUser(): List<User>

    @Select("select * from t_user where username = #{username}")
    fun queryUserByName(@Param("username") username: String): User?
}